package miiteen.demo.duty.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import miiteen.common.utils.FieldMeta;
import miiteen.sys.base.bean.BasePo;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class DutyInfo extends BasePo {
    @FieldMeta(name = "工号")
    private String jobNo;

    @FieldMeta(name = "姓名")
    private String personName;

    @FieldMeta(name = "值班日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dutyDate;

    public String getJobNo() {
        return jobNo;
    }

    public void setJobNo(String jobNo) {
        this.jobNo = jobNo;
    }

    public String getPersonName() {
        return personName;
    }

    public void setPersonName(String personName) {
        this.personName = personName;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public Date getDutyDate() {
        return dutyDate;
    }

    public void setDutyDate(Date dutyDate) {
        this.dutyDate = dutyDate;
    }
}
